package homework.api.day02._cp;

import javax.jws.soap.SOAPBinding;
import java.util.Arrays;

public class StringRegexDemo {
    public static void main(String[] args) {
        String mail = "wertyu@852.ccc.nn";
        String regex = "\\w+@[a-zA-Z0-9]+(\\.[a-zA-Z]+)+";
        System.out.println(mail.matches(regex));

        String line = "wse741ede852wee963";
        line = line.replaceAll("\\d+","##NUMBER");
        System.out.println(line);

        line = "...dssdfs.455.15sw......";
        String[] arr = line.split("\\.");
        System.out.println(Arrays.toString(arr));
    }
}
